package com.blindBox.front.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.blindBox.front.dao_pojo.Paper;
import com.blindBox.front.dao_pojo.PaperMappedToChoseUser;
import com.blindBox.front.dao_pojo.Paperchosebywho;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface PaperchosebywhoMapper extends BaseMapper<Paperchosebywho>
{
    //返回当前用户发布并被别抽取到的纸条
    @MapKey("id")
    public List<Map<Object,Object>> getUserPostAndChoseByOtherPaper(Integer u_id);

    //返回当前用户抽取到的所有纸条
    @MapKey("id")
    public List<Map<Object,Object>> getUserGetPapers(Integer u_id);

}
